package com.woniu.user.feignClient;

import com.woniu.common.annotation.LoginUser;
import com.woniu.common.entity.Result;
import com.woniu.user.pojo.Address;
import com.woniu.user.vo.UserLoginVO;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * 1. @description:
 * 2. @author: Lingger
 * 3. @time: 2023/5/26
 */
@FeignClient(name = "life-user", path = "/address", contextId = "address")
public interface AddressFeignClient {

    @GetMapping("/{addressId}")
    public Result<Address> getById(@PathVariable("addressId") Integer addressId);

    @GetMapping("/getAddress/{addressId}/{mobile}")
    public Result<Address> getAddress(@PathVariable("addressId") Integer addressId,
                                      @PathVariable("mobile") String mobile);
}
